package com.example.a28796.beautiful.zhangyuqibean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by admin on 2016/8/30.
 */
public class BeautyPagerBean {

    /**
     * code : 0
     * message : null
     * obj : {"topics":[{"liId":589046,"title":"全民抗痘保卫战","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160823/FsIDigrXn5wWLCS0YCC19oMfrrgl.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1011218"},{"liId":573115,"title":"改眉形美翻天","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160805/FsI0zFRZsilgnK9KpLTJFEUR4Gji.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1006090"},{"liId":573114,"title":"最美眼睛标准","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160805/Fr0R84KycN4uUxdermxhBQWxfCE_.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1006060"},{"liId":574086,"title":"解码逆龄神话","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160805/FlNFCLhNKRNJil3NzcEArNrNmJSB.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1006025"},{"liId":574054,"title":"变身水肌美人","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160805/FkGabZgLOiLJl2oZhK-KMfrpsVjv.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1005061"},{"liId":574053,"title":"减肥6大误区","summary":"","cover":{"url":"http://fq1.img.meidaila.net/160805/FsLmN8OA8J3t8f-gnvL_o92p34rT.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1005029"}],"effects":[{"liId":525022,"title":"补水","type":5,"searchMap":{"effectId":444433,"sort":3}},{"liId":526020,"title":"祛痘","type":5,"searchMap":{"effectId":444204,"sort":0}},{"liId":526019,"title":"祛斑","type":5,"searchMap":{"effectId":444435,"sort":3}},{"liId":525021,"title":"瘦脸","type":5,"searchMap":{"effectId":444436,"sort":3}},{"liId":526022,"title":"瘦身塑形","type":5,"searchMap":{"effectId":444205,"sort":3}},{"liId":526021,"title":"缩毛孔","type":5,"searchMap":{"effectId":444841,"sort":3}},{"liId":525024,"title":"除皱","type":5,"searchMap":{"effectId":444631,"sort":3}},{"liId":525023,"title":"双眼皮","type":5,"searchMap":{"effectId":444401,"sort":3}}],"ads":[{"liId":516011,"title":"综合美鼻","summary":"北京权威名医","cover":{"url":"http://fq1.img.meidaila.net/160829/Fn-zvSg3UIiECFDSg3vokcDOzsn2.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1010117"},{"liId":517026,"title":"自体填充","summary":"上海刘平医师","cover":{"url":"http://fq1.img.meidaila.net/160829/Fis7X0Vc8CZsnC-y7cqZYUKr3ekN.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1011007"},{"liId":516029,"title":"面部美容","summary":"成都皮肤专家","cover":{"url":"http://fq1.img.meidaila.net/160829/FktjdLetaiL1fqBhyrmzURYtbRvm.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1010014"},{"liId":517029,"title":"面部精雕","summary":"广州医学博士","cover":{"url":"http://fq1.img.meidaila.net/160823/FsjvrWMrC4Da9rPRtSk6EjNUbcPw.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1010032"},{"liId":573204,"title":"五官微雕","summary":"杭州名医宋茂启","cover":{"url":"http://fq1.img.meidaila.net/160829/FjwjrLvO_cdXqr_nXha5btIpU0HH.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1013103"},{"liId":517030,"title":"脂肪移植","summary":"星级医师王钊","cover":{"url":"http://fq1.img.meidaila.net/160829/FgnTPjgL4nfSJSNeAT0kSGMMwcWl.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1010036"}],"carousels":[{"liId":588029,"title":"为美丽而生的星级","summary":"美黛拉首批星级医院正式上线","cover":{"url":"http://fq1.img.meidaila.net/160819/Fm29GpLVALmBSbcpLdpIOiZ9D8pm.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1011015"},{"liId":585002,"title":"黛粉亲测 这家纹眉做得超美","summary":"黛粉们都说：这家的正太纹绣师纹出来的眉形超美呢！","cover":{"url":"http://fq1.img.meidaila.net/160817/FmwoRUhL7sKKRIshBygZ119xJYvd.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1005870"},{"liId":583102,"title":"项目推荐-黄金微针","summary":"五大功效，真人案例，小编用心推荐！","cover":{"url":"http://fq1.img.meidaila.net/160815/FoLzV64nmlm5m1a8V8xM4hZNE5Zc.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1005572"},{"liId":585003,"title":"拯救激素脸 大咖支招","summary":"拯救激素脸 大咖支招","cover":{"url":"http://fq1.img.meidaila.net/160817/FptKNavu97p8G_YM5igQWA5Pe8Hf.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1006587"},{"liId":609005,"title":"综合美鼻名医 巫文云","summary":"一身过硬本领，人称美鼻圣手的巫医生，有技术，有坚持，要你美出新高度！快来看看他的\u201c必杀技\u201d吧~","cover":{"url":"http://fq1.img.meidaila.net/160829/FqBDC_2hLcPR9kmSvOycveQLjlSE.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null},"type":2,"url":"http://m.mdl.com/special/theme/1010117"}],"hotWords":[{"liId":558090,"title":"水光针","summary":"","type":5,"searchMap":{"key":"诺俪 米扬丽格","effectId":421260,"itemId":400346,"sort":0}},{"liId":558089,"title":"瑞蓝玻尿酸","summary":"","type":5,"searchMap":{"key":"卡贝媞 爱悦丽格 常好丽格","effectId":421274,"itemId":403126,"sort":0}},{"liId":558088,"title":"双眼皮","summary":"","type":5,"searchMap":{"key":"孙强 张海明","effectId":421809,"itemId":293410,"sort":0}},{"liId":525033,"title":"脱毛","type":5,"searchMap":{"key":"汇美","effectId":421593,"itemId":293639,"sort":0}}]}
     * now : 1472520790
     * sign : null
     */

    private int code;
    private Object message;
    private ObjBean obj;
    private int now;
    private Object sign;

    public static BeautyPagerBean objectFromData(String str) {

        return new Gson().fromJson(str, BeautyPagerBean.class);
    }

    public static BeautyPagerBean objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), BeautyPagerBean.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static List<BeautyPagerBean> arrayBeautyPagerBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<BeautyPagerBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public static List<BeautyPagerBean> arrayBeautyPagerBeanFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);
            Type listType = new TypeToken<ArrayList<BeautyPagerBean>>() {
            }.getType();

            return new Gson().fromJson(jsonObject.getString(str), listType);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return new ArrayList();


    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }

    public ObjBean getObj() {
        return obj;
    }

    public void setObj(ObjBean obj) {
        this.obj = obj;
    }

    public int getNow() {
        return now;
    }

    public void setNow(int now) {
        this.now = now;
    }

    public Object getSign() {
        return sign;
    }

    public void setSign(Object sign) {
        this.sign = sign;
    }

    public static class ObjBean {
        /**
         * liId : 589046
         * title : 全民抗痘保卫战
         * summary :
         * cover : {"url":"http://fq1.img.meidaila.net/160823/FsIDigrXn5wWLCS0YCC19oMfrrgl.jpg","w":260,"h":260,"status":0,"desc":null,"extra":null}
         * type : 2
         * url : http://m.mdl.com/special/theme/1011218
         */

        private List<TopicsBean> topics;
        /**
         * liId : 525022
         * title : 补水
         * type : 5
         * searchMap : {"effectId":444433,"sort":3}
         */

        private List<EffectsBean> effects;
        /**
         * liId : 516011
         * title : 综合美鼻
         * summary : 北京权威名医
         * cover : {"url":"http://fq1.img.meidaila.net/160829/Fn-zvSg3UIiECFDSg3vokcDOzsn2.jpg","w":160,"h":160,"status":0,"desc":null,"extra":null}
         * type : 2
         * url : http://m.mdl.com/special/theme/1010117
         */

        private List<AdsBean> ads;
        /**
         * liId : 588029
         * title : 为美丽而生的星级
         * summary : 美黛拉首批星级医院正式上线
         * cover : {"url":"http://fq1.img.meidaila.net/160819/Fm29GpLVALmBSbcpLdpIOiZ9D8pm.jpg","w":750,"h":360,"status":0,"desc":null,"extra":null}
         * type : 2
         * url : http://m.mdl.com/special/theme/1011015
         */

        private List<CarouselsBean> carousels;
        /**
         * liId : 558090
         * title : 水光针
         * summary :
         * type : 5
         * searchMap : {"key":"诺俪 米扬丽格","effectId":421260,"itemId":400346,"sort":0}
         */

        private List<HotWordsBean> hotWords;

        public static ObjBean objectFromData(String str) {

            return new Gson().fromJson(str, ObjBean.class);
        }

        public static ObjBean objectFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);

                return new Gson().fromJson(jsonObject.getString(str), ObjBean.class);
            } catch (JSONException e) {
                e.printStackTrace();
            }

            return null;
        }

        public static List<ObjBean> arrayObjBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<ObjBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public static List<ObjBean> arrayObjBeanFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);
                Type listType = new TypeToken<ArrayList<ObjBean>>() {
                }.getType();

                return new Gson().fromJson(jsonObject.getString(str), listType);

            } catch (JSONException e) {
                e.printStackTrace();
            }

            return new ArrayList();


        }

        public List<TopicsBean> getTopics() {
            return topics;
        }

        public void setTopics(List<TopicsBean> topics) {
            this.topics = topics;
        }

        public List<EffectsBean> getEffects() {
            return effects;
        }

        public void setEffects(List<EffectsBean> effects) {
            this.effects = effects;
        }

        public List<AdsBean> getAds() {
            return ads;
        }

        public void setAds(List<AdsBean> ads) {
            this.ads = ads;
        }

        public List<CarouselsBean> getCarousels() {
            return carousels;
        }

        public void setCarousels(List<CarouselsBean> carousels) {
            this.carousels = carousels;
        }

        public List<HotWordsBean> getHotWords() {
            return hotWords;
        }

        public void setHotWords(List<HotWordsBean> hotWords) {
            this.hotWords = hotWords;
        }

        public static class TopicsBean {
            private int liId;
            private String title;
            private String summary;
            /**
             * url : http://fq1.img.meidaila.net/160823/FsIDigrXn5wWLCS0YCC19oMfrrgl.jpg
             * w : 260
             * h : 260
             * status : 0
             * desc : null
             * extra : null
             */

            private CoverBean cover;
            private int type;
            private String url;

            public static TopicsBean objectFromData(String str) {

                return new Gson().fromJson(str, TopicsBean.class);
            }

            public static TopicsBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), TopicsBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<TopicsBean> arrayTopicsBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<TopicsBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<TopicsBean> arrayTopicsBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<TopicsBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public int getLiId() {
                return liId;
            }

            public void setLiId(int liId) {
                this.liId = liId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public static class CoverBean {
                private String url;
                private int w;
                private int h;
                private int status;
                private Object desc;
                private Object extra;

                public static CoverBean objectFromData(String str) {

                    return new Gson().fromJson(str, CoverBean.class);
                }

                public static CoverBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), CoverBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<CoverBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<CoverBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getW() {
                    return w;
                }

                public void setW(int w) {
                    this.w = w;
                }

                public int getH() {
                    return h;
                }

                public void setH(int h) {
                    this.h = h;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public Object getDesc() {
                    return desc;
                }

                public void setDesc(Object desc) {
                    this.desc = desc;
                }

                public Object getExtra() {
                    return extra;
                }

                public void setExtra(Object extra) {
                    this.extra = extra;
                }
            }
        }

        public static class EffectsBean {
            private int liId;
            private String title;
            private int type;
            /**
             * effectId : 444433
             * sort : 3
             */

            private SearchMapBean searchMap;

            public static EffectsBean objectFromData(String str) {

                return new Gson().fromJson(str, EffectsBean.class);
            }

            public static EffectsBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), EffectsBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<EffectsBean> arrayEffectsBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<EffectsBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<EffectsBean> arrayEffectsBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<EffectsBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public int getLiId() {
                return liId;
            }

            public void setLiId(int liId) {
                this.liId = liId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public SearchMapBean getSearchMap() {
                return searchMap;
            }

            public void setSearchMap(SearchMapBean searchMap) {
                this.searchMap = searchMap;
            }

            public static class SearchMapBean {
                private int effectId;
                private int sort;

                public static SearchMapBean objectFromData(String str) {

                    return new Gson().fromJson(str, SearchMapBean.class);
                }

                public static SearchMapBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), SearchMapBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<SearchMapBean> arraySearchMapBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<SearchMapBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<SearchMapBean> arraySearchMapBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<SearchMapBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public int getEffectId() {
                    return effectId;
                }

                public void setEffectId(int effectId) {
                    this.effectId = effectId;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }
            }
        }

        public static class AdsBean {
            private int liId;
            private String title;
            private String summary;
            /**
             * url : http://fq1.img.meidaila.net/160829/Fn-zvSg3UIiECFDSg3vokcDOzsn2.jpg
             * w : 160
             * h : 160
             * status : 0
             * desc : null
             * extra : null
             */

            private CoverBean cover;
            private int type;
            private String url;

            public static AdsBean objectFromData(String str) {

                return new Gson().fromJson(str, AdsBean.class);
            }

            public static AdsBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), AdsBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<AdsBean> arrayAdsBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<AdsBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<AdsBean> arrayAdsBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<AdsBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public int getLiId() {
                return liId;
            }

            public void setLiId(int liId) {
                this.liId = liId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public static class CoverBean {
                private String url;
                private int w;
                private int h;
                private int status;
                private Object desc;
                private Object extra;

                public static CoverBean objectFromData(String str) {

                    return new Gson().fromJson(str, CoverBean.class);
                }

                public static CoverBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), CoverBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<CoverBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<CoverBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getW() {
                    return w;
                }

                public void setW(int w) {
                    this.w = w;
                }

                public int getH() {
                    return h;
                }

                public void setH(int h) {
                    this.h = h;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public Object getDesc() {
                    return desc;
                }

                public void setDesc(Object desc) {
                    this.desc = desc;
                }

                public Object getExtra() {
                    return extra;
                }

                public void setExtra(Object extra) {
                    this.extra = extra;
                }
            }
        }

        public static class CarouselsBean {
            private int liId;
            private String title;
            private String summary;
            /**
             * url : http://fq1.img.meidaila.net/160819/Fm29GpLVALmBSbcpLdpIOiZ9D8pm.jpg
             * w : 750
             * h : 360
             * status : 0
             * desc : null
             * extra : null
             */

            private CoverBean cover;
            private int type;
            private String url;

            public static CarouselsBean objectFromData(String str) {

                return new Gson().fromJson(str, CarouselsBean.class);
            }

            public static CarouselsBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), CarouselsBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<CarouselsBean> arrayCarouselsBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<CarouselsBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<CarouselsBean> arrayCarouselsBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<CarouselsBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public int getLiId() {
                return liId;
            }

            public void setLiId(int liId) {
                this.liId = liId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            public CoverBean getCover() {
                return cover;
            }

            public void setCover(CoverBean cover) {
                this.cover = cover;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public static class CoverBean {
                private String url;
                private int w;
                private int h;
                private int status;
                private Object desc;
                private Object extra;

                public static CoverBean objectFromData(String str) {

                    return new Gson().fromJson(str, CoverBean.class);
                }

                public static CoverBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), CoverBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<CoverBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<CoverBean> arrayCoverBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<CoverBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getW() {
                    return w;
                }

                public void setW(int w) {
                    this.w = w;
                }

                public int getH() {
                    return h;
                }

                public void setH(int h) {
                    this.h = h;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public Object getDesc() {
                    return desc;
                }

                public void setDesc(Object desc) {
                    this.desc = desc;
                }

                public Object getExtra() {
                    return extra;
                }

                public void setExtra(Object extra) {
                    this.extra = extra;
                }
            }
        }

        public static class HotWordsBean {
            private int liId;
            private String title;
            private String summary;
            private int type;
            /**
             * key : 诺俪 米扬丽格
             * effectId : 421260
             * itemId : 400346
             * sort : 0
             */

            private SearchMapBean searchMap;

            public static HotWordsBean objectFromData(String str) {

                return new Gson().fromJson(str, HotWordsBean.class);
            }

            public static HotWordsBean objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), HotWordsBean.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<HotWordsBean> arrayHotWordsBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<HotWordsBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<HotWordsBean> arrayHotWordsBeanFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<HotWordsBean>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public int getLiId() {
                return liId;
            }

            public void setLiId(int liId) {
                this.liId = liId;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSummary() {
                return summary;
            }

            public void setSummary(String summary) {
                this.summary = summary;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public SearchMapBean getSearchMap() {
                return searchMap;
            }

            public void setSearchMap(SearchMapBean searchMap) {
                this.searchMap = searchMap;
            }

            public static class SearchMapBean {
                private String key;
                private int effectId;
                private int itemId;
                private int sort;

                public static SearchMapBean objectFromData(String str) {

                    return new Gson().fromJson(str, SearchMapBean.class);
                }

                public static SearchMapBean objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), SearchMapBean.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<SearchMapBean> arraySearchMapBeanFromData(String str) {

                    Type listType = new TypeToken<ArrayList<SearchMapBean>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<SearchMapBean> arraySearchMapBeanFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<SearchMapBean>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public String getKey() {
                    return key;
                }

                public void setKey(String key) {
                    this.key = key;
                }

                public int getEffectId() {
                    return effectId;
                }

                public void setEffectId(int effectId) {
                    this.effectId = effectId;
                }

                public int getItemId() {
                    return itemId;
                }

                public void setItemId(int itemId) {
                    this.itemId = itemId;
                }

                public int getSort() {
                    return sort;
                }

                public void setSort(int sort) {
                    this.sort = sort;
                }
            }
        }
    }
}
